<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, minimal-ui"/>
    <meta content="telephone=no" name="format-detection"/>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <title><%= htmlWebpackPlugin.options.htmlConfig.title %></title>
    <% if (htmlWebpackPlugin.options.htmlConfig.baiduAnalysis) { %>
    <script>
      var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?<%= htmlWebpackPlugin.options.htmlConfig.baiduAnalysis %>";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>
    <% } %>
  </head>
  <body>
    <% if (htmlWebpackPlugin.options.htmlConfig.wxShareImage) { %>
    <div style="position: relative;overflow: hidden;">
      <img src="<=% htmlWebpackPlugin.options.htmlConfig.wxShareImage %>" style="top: -1000px; position: absolute;">
    </div>
    <% } %>
    <% if (htmlWebpackPlugin.options.htmlConfig.firstHref) { %>
    <script>
      // 第一次进入页面的链接
      var firstHref = location.href;
    </script>
    <% } %>
    <% if (typeof htmlWebpackPlugin.options.htmlConfig.htmlFontSize === 'number') { %>
    <script>
      // 基线字体设置
      var htmlFontSize = <%= htmlWebpackPlugin.options.htmlConfig.htmlFontSize %>
      document.body.parentNode.style.fontSize = htmlFontSize + 'px';
      window.htmlFontSize = htmlFontSize
    </script>
    <% } else if (htmlWebpackPlugin.options.htmlConfig.htmlFontSize === true) { %>
    <script>
      // 基线字体设置
      var htmlFontSize = (document.documentElement.clientWidth) / 375 * 50
      document.body.parentNode.style.fontSize = htmlFontSize + 'px';
      window.htmlFontSize = htmlFontSize
    </script>
    <% } %>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
